package dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import pojo.User;

public interface UserMapper  {
    //xml配置总是找不到，只能注解了
    @Select("select * from user where username =#{username} and password = #{password}")
    User findUserByNameAndPassword(User user);

    @Insert("insert into user values(null,#{username},#{password})")
    int addUser(User user);
}
